package com.example.service;

import com.baomidou.mybatisplus.service.IService;
import com.example.entity.Department;
import com.example.entity.department.DepartmentOneBO;
import com.example.entity.department.DepartmentTreeBO;
import java.util.List;

/**
 * @author ChenXiaoBin
 * on 2019-07-04
 */
public interface IDepartmentService extends IService<Department> {

    /**
     * 递归查询部门树列表
     * parentId
     */
    List<DepartmentTreeBO> getDepartmentList(Integer parentId);


    /**
     * 测试redis做缓存
     * @return
     */
    List<Department> departmentList();


    List<Department> getDepartmentByDate(String date);

    void delay();

    DepartmentOneBO getCreateTime();
}
